package nyasatech.elevatorsim;

public class Passenger {
	
	//count all the passenger instances being created
	private static int count;
	
	//unique id of passenger
	private int id;
	
	
	//constructor
	public Passenger()
	{
		this.id = count;
		count++;
	}
	
	//allows other classes to access id
	public int getId()
	{
		return this.id;
	}
	
	//gives string representation of this passenger object
	public String toString()
	{
		return "passenger id: " + this.id;
	}

}
